import http from "@/utils/http";
const prefixUrl = {
  queryClubList: "/analysis/club/list",
  queryClubDetail: "/analysis/club/detail",
  updateClubMemberList: "/analysis/club/memberList",
  updateClubStatus: "/analysis/club/disable",
  query: "/analysis/party/list",
  queryAudit: "/analysis/party/audit", // 不存在
  detail: "/analysis/party/info",
  reviewPass: "/analysis/party/review-pass",
  reviewReject: "/analysis/party/review-reject",
  queryMemberList: "/analysis/party/member-list",
  delete: "/analysis/party/delete",
  cancelParty: "/analysis/party/cancel",
};
export default {
  role: {
    queryClubList: "POST:" + prefixUrl.queryClubList,
    queryClubDetail: "POST:" + prefixUrl.queryClubDetail,
    updateClubMemberList: "POST:" + prefixUrl.updateClubMemberList,
    updateClubStatus: "POST:" + prefixUrl.updateClubStatus,
    query: "POST:" + prefixUrl.query,
    queryAudit: "POST:" + prefixUrl.queryAudit,
    detail: "POST:" + prefixUrl.detail,
    reviewPass: "POST:" + prefixUrl.reviewPass,
    reviewReject: "POST:" + prefixUrl.reviewReject,
    queryMemberList: "POST:" + prefixUrl.queryMemberList,
    delete: "POST:" + prefixUrl.delete,
    cancelParty: "POST:" + prefixUrl.cancelParty,
  },
  club: {
    queryClubList(params = {}) {
      return http.post(prefixUrl.queryClubList, params);
    },
    queryClubDetail(params = {}) {
      return http.post(prefixUrl.queryClubDetail, params);
    },
    updateClubMemberList(params = {}) {
      return http.post(prefixUrl.updateClubMemberList, params);
    },
    updateClubStatus(params = {}) {
      return http.post(prefixUrl.updateClubStatus, params);
    },
  },
  party: {
    query(params = {}) {
      return http.post(prefixUrl.query, params);
    },
    detail(params = {}) {
      return http.post(prefixUrl.detail, params);
    },
    reviewPass(params = {}) {
      return http.post(prefixUrl.reviewPass, params);
    },
    reviewReject(params = {}) {
      return http.post(prefixUrl.reviewReject, params);
    },
    queryMemberList(params = {}) {
      return http.post(prefixUrl.queryMemberList, params);
    },
    delete(params = {}) {
      return http.post(prefixUrl.delete, params);
    },
    cancelParty(params = {}) {
      return http.post(prefixUrl.cancelParty, params);
    },
  },
};
